package com.atguigu.dga.assess.assess.spec;

import com.atguigu.dga.assess.assess.AssessorTemplate;
import com.atguigu.dga.assess.bean.AssessParam;
import com.atguigu.dga.assess.bean.GovernanceAssessDetail;
import com.atguigu.dga.meta.bean.TableMetaInfoExtra;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;

@Component("HAVE_TEC_OWNER")
public class CheckTecOwnner extends AssessorTemplate {

    @Override
    protected void assess(AssessParam param, GovernanceAssessDetail detail) {
        TableMetaInfoExtra tableMetaInfoExtra = param.getTableMetaInfo().getTableMetaInfoExtra();
        if (StringUtils.isBlank(tableMetaInfoExtra.getTecOwnerUserName())){
            assessZeroScore(detail,"缺少技术负责人！",param,true);
        }
    }
}










